![]() |
FillRect |
||||
Header: | Quickdraw.h | Carbon status: | Supported | |
Fills a rectangle with any available bit pattern.
void FillRect ( const Rect *r, const Pattern *pat );
The rectangle to fill.
The bit pattern to use for the fill.
Using the patCopy pattern mode, the FillRect function draws the interior of the rectangle that you specify in the r parameter with the pattern defined in the Pattern structure that you specify in the pat parameter. This function leaves the pen location unchanged.
Use GetPattern and GetIndPattern, to get a pattern stored in a resource.
Use the PaintRect to draw the interior of a rectangle with the pen pattern for the current graphics port. To fill a rectangle with a pixel pattern, use the FillCRect function.
The FillRect function may move or purge memory blocks in the application heap; do not call this function at interrupt time.
Supported in Carbon. Available in Carbon 1.0.2 and later when running Mac OS 8.1 or later.
© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)